local MainApp1 = class("MainApp1")

function MainApp1:Awake(go,refAssets)
	self.gameObject = go
	self.transform = go.transform
	-- body
	logWarn("lua>>>>>>>>>>>>>>> Awake "..self.gameObject.name)

	UpdateBeat:Add(self.Update,self)
	LateUpdateBeat:Add(self.LateUpdate,self)
	FixedUpdateBeat:Add(self.FixedUpdate,self)
end

function MainApp1:Start()
	-- body
	logWarn("lua>>>>>>>>>>>>>>> Start "..self.gameObject.name)
end

function MainApp1:Update()
	-- body
	logWarn("lua>>>>>>>>>>>>>>> Update "..self.gameObject.name)
end

function MainApp1:LateUpdate()
	-- body
	logWarn("lua>>>>>>>>>>>>>>> LateUpdate "..self.gameObject.name)
end

function MainApp1:FixedUpdate()
	-- body
	logWarn("lua>>>>>>>>>>>>>>> FixedUpdate "..self.gameObject.name)
end

function MainApp1:OnDestroy()
	-- body
	logWarn("lua>>>>>>>>>>>>>>> OnDestroy "..self.gameObject.name)
	UpdateBeat:Remove(self.Update,self)
	LateUpdateBeat:Remove(self.LateUpdate,self)
	FixedUpdateBeat:Remove(self.FixedUpdate,self)
end

return MainApp1